package com.ruoyi.wechat;

/**
 * @Author: chengliang
 * @Date: Created in 2021/3/29 18:05
 */

import java.util.List;

public class SmsTemplate {
    private String action;
    private String userid;
    private String account;
    private String password;
    private String mobile;
    private String content;

    public String getAction() {
        return action;
    }
    public void setAction(String action) {
        this.action = action;
    }

    public String getUserid() {
        return userid;
    }
    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getAccount() {
        return account;
    }
    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }

    public String getmMobile() {
        return mobile;
    }
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }

    public String toJSON() {
        StringBuffer buffer = new StringBuffer();
        buffer.append("{");
        buffer.append(String.format("\"action\":\"%s\"", this.action)).append(",");
        buffer.append(String.format("\"userid\":\"%s\"", this.userid)).append(",");
        buffer.append(String.format("\"account\":\"%s\"", this.account)).append(",");
        buffer.append(String.format("\"password\":\"%s\"", this.password)).append(",");
        buffer.append(String.format("\"mobile\":\"%s\"", this.mobile)).append(",");
        buffer.append(String.format("\"content\":\"%s\"", this.content));

        buffer.append("}");
        return buffer.toString();
    }

//    public List<TemplateParam> getTemplateParamList() {
//        return templateParamList;
//    }
//
//    public void setTemplateParamList(List<TemplateParam> templateParamList) {
//        this.templateParamList = templateParamList;
//    }
}
